package UCM;

import Views.ViewDisplayAddPromotion;

/**
 *
 * @author Joshua King
 */
public class UCDisplayAddPromotion implements UCController {
    private ViewDisplayAddPromotion view;

    /**
     * Initialises the view.
     * @param view
     */
    public UCDisplayAddPromotion(ViewDisplayAddPromotion view) {
        this.view = view;
    }

    /**
     * Precondition: user is logged in as manager
     * 1. Users clicks on the Add Promotion button.
     * 2. System displays Add Promotion view.
     * Postcondition: user is on Add Promotion page.
     */
    public void run() {
        view.setAddPromotionVisible();
    }
}
